package com.tiantian.mapper;

import com.tiantian.dto.MyFollowDTO;
import com.tiantian.dto.UserDTO;
import com.tiantian.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<MyFollowDTO> selectUserByKeyWord(String keyWord);

    User selectEmailAndPassword(String email, String password);

    User selectUserInfoById(Long uid);

    int insertUserInfo(User user);

    User selectUserInfoOne(String email);

    int updateHeadUrl(String url,Integer uid);

    String getUserHeadUrlByUid(Integer uid);

    int updatePasswordByUid(String encryptionPwd, Integer uid);

    UserDTO selectUserDTOByUid(Integer uid);

    int updatePasswordByEmail(String email, String encryptionPwd);
}
